package com.tencent.servlet;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

/**
 * @author: Fame
 * @date: 2022-06-27 14:44
 * @description:
 */
public class Demo1Servlet extends HttpServlet {
    @Override
    public void init() throws ServletException {
        ServletConfig config = getServletConfig();
        String hello = config.getInitParameter("hello");
        System.out.println("hello = " + hello);
    }
}
